﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SamCategory.ascx.cs" Inherits="BSPortal.Usercontrol.SamCategory" %>
<%@ Import Namespace="BSPortal" %>
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
    <ContentTemplate>            
        <div id="sum_canyoulike_new" class="show_depart_items">
    <div class="block_title">
        <p id="lbCategoryName" runat="server">Sản phẩm cùng loại</p>
    </div>
    <div class="clear" style="height:10px"></div>
    <ul class="depart_items_column column">
        <asp:Repeater ID="productRepeater" runat="server" 
            onitemdatabound="productRepeater_ItemDataBound">
            <ItemTemplate>
                <li>				
                    <div class="block">
                        <div class="img" style="display: list-item">
                            <a href="product-<%=Common.GetLine() %>-<%# Eval("ProductId")%>.html" title="<%# Eval("Name")%>" class="link_view_image">
                                <center><img alt="<%# Eval("Name")%>" src="/images/<%# Eval("Image")%>" class="productImage"></center>
                            </a>
                        </div>
                        <div class="clear"></div>
                        <p class="text_name">
                            <a href="product-<%=Common.GetLine() %>-<%# Eval("ProductId")%>.html" title="<%# Eval("Name")%>" class="title a_link_view_detail"><%# Eval("Name")%></a>
                        </p>
                        <table style="margin: 0 auto;">
                            <tbody>
                                <tr>
                                    <td><asp:Label runat="server" ID="lblPrice_Title" Text=" Giá gốc: " class="gia_tu11"></asp:Label></td>
                                    <td><span class="min_max_price_list"><%# Eval("Price", "{0:#,###}")%></span><span class="vnd_price_ref">đ</span> </td>
                                </tr>
                                <tr>
                                    <td><asp:Label ID="lblDiscount" class="gia_tu11" runat="server">  Giá bán: </asp:Label></td>
                                    <td><asp:Label ID="txtDiscount" class="min_max_price_list" runat="server"><%# (Math.Round((int.Parse(Eval("Price").ToString()) * (1 - float.Parse(Eval("Discount").ToString())))/100,0)*100).ToString("#,###")%></asp:Label><asp:Label ID="lblUnit" class="vnd_price_ref" runat="server">đ</asp:Label> </td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="center">
                                        <a href="product-<%=Common.GetLine() %>-<%# Eval("ProductId")%>.html" style="font-size:12px" class="title a_link_view_detail">Chi tiết</a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </li>
            </ItemTemplate>
        </asp:Repeater>
    </ul>
    <div class="clear"></div>
    <div align="center">
        <asp:PlaceHolder ID="plcPaging" runat="server" />
    </div>
</div>
    </ContentTemplate>
</asp:UpdatePanel>